/*
 *      debug.h
 *      
 *      Copyright 2009 Daniele Ricci <denn86@gmail.com>, Luca Saccagi <luksak86@gmail.com>
 *      
 *      This program is free software; you can redistribute it and/or modify
 *      it under the terms of the GNU General Public License as published by
 *      the Free Software Foundation; either version 2 of the License, or
 *      (at your option) any later version.
 *      
 *      This program is distributed in the hope that it will be useful,
 *      but WITHOUT ANY WARRANTY; without even the implied warranty of
 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *      GNU General Public License for more details.
 *      
 *      You should have received a copy of the GNU General Public License
 *      along with this program; if not, write to the Free Software
 *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 *      MA 02110-1301, USA.
 */

/*
	USING DEBUG MODE:
		Always keep DAEMON set to '1';
		Never change the DEBUG define value; 
		Change only the desired define values in order to activate 
		each debug statement.
*/


#ifndef _DEBUGF
#define _DEBUGF


#define DEBUG				1
#define DAEMON				1

#define DBG_MUTEX			0 
#define DBG_CONF			0
#define DBG_QUERY			0
#define DBG_FILTERS			0
#define DBG_TREE			0
#define DBG_TREE_PLUS		0
#define DBG_FRAMES			0
#define DBG_SELECT			0
#define DBG_ERRMAN			0
#define DBG_VISUAL			0
#define DBG_INDEXSTRUCT 	0
#define DBG_FILES			0
#define DBG_REALLOC_S		0





#include "idmp.h"

void print_conf(conf *configuration);
void printTree(processingTree *root);
void printIndexStruct(int printtime, int printaddress);

void print_xmlNodeList(xmlNodeList *list);
int cnt_xmlNodeList(xmlNodeList *list);
void resProg(char *prefix,int Fcnt);

void printProp(xmlNode *this);
void printSons(xmlNode *this);
void printSubTree(xmlNode *root,int length, char *selstr,char *cmp);


#endif
